package cpgears.log {
	import asunit.framework.TestCase;
	import cpgears.log.LogManager;
	
	/**
	 * ...
	 * @author Whyves
	 */
	public class LogManagerTest extends TestCase{
		
		public function LogManagerTest(testMethod:String = null) {
			super(testMethod);
		}
		
		override protected function setUp():void {
			LogManager.logFactory = null;
		}
		
		public function testGetDefaultTraceLogger():void {
			var logger:ILogger = LogManager.getLogger("dummy");
			assertTrue(logger is DefaultTraceLogger);
		}
		
		public function testGetLog5fLogger():void {
			LogManager.logFactory = new ArthropodLogFactory();
			var logger:ILogger = LogManager.getLogger("dummy");
			assertTrue(logger is Log5fLoggerDecorator);
		}
		
		override protected function tearDown():void {
			LogManager.logFactory = null;
		}
	}
}